package com.palnar.ilecker.manager;


import com.palnar.ilecker.R;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.widget.Toast;

public class NotifyManager {
	
	public static void showShortToast(Context context, String message)
	{
		Toast.makeText(context, message, Toast.LENGTH_SHORT).show();
	}
	
	public static void showLongToast(Context context, String message)
	{
		Toast.makeText(context, message, Toast.LENGTH_LONG).show();
	}
	
	
	public static void alert(Context context, String msg) {
		AlertDialog.Builder alert = new AlertDialog.Builder(context);
		alert.setIcon(R.drawable.logo);
		alert.setTitle(context.getResources().getString(R.string.app_name));
		alert.setMessage(msg);
		alert.setPositiveButton("OK", new DialogInterface.OnClickListener() {
			@Override
			public void onClick(DialogInterface dialog, int which) 
			{
				
			}
		});
		alert.show();
	}

}
